

<!DOCTYPE html>
<!--[if IE 8]><html class="no-js lt-ie9" lang="python" > <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="python" > <!--<![endif]-->
<head>
  <meta charset="utf-8">
  
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  
  <title>QUANTAXIS.QAAnalysis.QAAnalysis_block &mdash; QUANTAXIS 1.0.39 documentation</title>
  

  
  
  
  

  

  
  
    

  

  
    <link rel="stylesheet" href="../../../_static/css/theme.css" type="text/css" />
  <link rel="stylesheet" href="../../../_static/pygments.css" type="text/css" />
    <link rel="index" title="Index" href="../../../genindex.html" />
    <link rel="search" title="Search" href="../../../search.html" /> 

  
  <script src="../../../_static/js/modernizr.min.js"></script>

</head>

<body class="wy-body-for-nav">

   
  <div class="wy-grid-for-nav">

    
    <nav data-toggle="wy-nav-shift" class="wy-nav-side">
      <div class="wy-side-scroll">
        <div class="wy-side-nav-search">
          

          
            <a href="../../../index.html" class="icon icon-home"> QUANTAXIS
          

          
          </a>

          
            
            
              <div class="version">
                1.0.39
              </div>
            
          

          
<div role="search">
  <form id="rtd-search-form" class="wy-form" action="../../../search.html" method="get">
    <input type="text" name="q" placeholder="Search docs" />
    <input type="hidden" name="check_keywords" value="yes" />
    <input type="hidden" name="area" value="default" />
  </form>
</div>

          
        </div>

        <div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
          
            
            
              
            
            
              <!-- Local TOC -->
              <div class="local-toc"></div>
            
          
        </div>
      </div>
    </nav>

    <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">

      
      <nav class="wy-nav-top" aria-label="top navigation">
        
          <i data-toggle="wy-nav-top" class="fa fa-bars"></i>
          <a href="../../../index.html">QUANTAXIS</a>
        
      </nav>


      <div class="wy-nav-content">
        
        <div class="rst-content">
        
          















<div role="navigation" aria-label="breadcrumbs navigation">

  <ul class="wy-breadcrumbs">
    
      <li><a href="../../../index.html">Docs</a> &raquo;</li>
        
          <li><a href="../../index.html">Module code</a> &raquo;</li>
        
      <li>QUANTAXIS.QAAnalysis.QAAnalysis_block</li>
    
    
      <li class="wy-breadcrumbs-aside">
        
      </li>
    
  </ul>

  
  <hr/>
</div>
          <div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
           <div itemprop="articleBody">
            
  <h1>Source code for QUANTAXIS.QAAnalysis.QAAnalysis_block</h1><div class="highlight"><pre>
<span></span><span class="c1"># coding:utf-8</span>

<span class="c1"># 输入一个stock_list/stock_block</span>
<span class="c1"># 生成相关因子</span>

<span class="kn">import</span> <span class="nn">datetime</span>

<span class="kn">import</span> <span class="nn">pandas</span> <span class="k">as</span> <span class="nn">pd</span>

<span class="kn">from</span> <span class="nn">QUANTAXIS.QAAnalysis.QAAnalysis_dataframe</span> <span class="k">import</span> <span class="n">QAAnalysis_stock</span>
<span class="kn">from</span> <span class="nn">QUANTAXIS.QAFetch.QAQuery</span> <span class="k">import</span> <span class="n">QA_fetch_stock_info</span>
<span class="kn">from</span> <span class="nn">QUANTAXIS.QAFetch.QAQuery_Advance</span> <span class="k">import</span> <span class="p">(</span><span class="n">QA_fetch_stock_block_adv</span><span class="p">,</span>
                                               <span class="n">QA_fetch_stock_day_adv</span><span class="p">,</span>
                                               <span class="n">QA_fetch_stock_min_adv</span><span class="p">)</span>
<span class="kn">from</span> <span class="nn">QUANTAXIS.QAFetch.QATdx</span> <span class="k">import</span> <span class="n">QA_fetch_get_stock_info</span>
<span class="kn">from</span> <span class="nn">QUANTAXIS.QAFetch.QATdx_adv</span> <span class="k">import</span> <span class="n">QA_Tdx_Executor</span>
<span class="kn">from</span> <span class="nn">QUANTAXIS.QAUtil.QADate_trade</span> <span class="k">import</span> <span class="n">QA_util_get_real_datelist</span>


<div class="viewcode-block" id="get_gap_trade"><a class="viewcode-back" href="../../../source/QUANTAXIS.QAAnalysis.html#QUANTAXIS.QAAnalysis.QAAnalysis_block.get_gap_trade">[docs]</a><span class="k">def</span> <span class="nf">get_gap_trade</span><span class="p">(</span><span class="n">gap</span><span class="p">):</span>
    <span class="k">return</span> <span class="n">QA_util_get_real_datelist</span><span class="p">(</span><span class="n">datetime</span><span class="o">.</span><span class="n">date</span><span class="o">.</span><span class="n">today</span><span class="p">()</span> <span class="o">+</span> <span class="n">datetime</span><span class="o">.</span><span class="n">timedelta</span><span class="p">(</span><span class="n">days</span><span class="o">=-</span><span class="nb">int</span><span class="p">(</span><span class="n">gap</span><span class="p">)),</span> <span class="n">datetime</span><span class="o">.</span><span class="n">date</span><span class="o">.</span><span class="n">today</span><span class="p">())</span></div>


<span class="c1">#from QUANTAXIS.QAAnalysis.QAAnalysis_dataframe import QAAnalysis_stock</span>
<div class="viewcode-block" id="QAAnalysis_block"><a class="viewcode-back" href="../../../source/QUANTAXIS.QAAnalysis.html#QUANTAXIS.QAAnalysis.QAAnalysis_block.QAAnalysis_block">[docs]</a><span class="k">class</span> <span class="nc">QAAnalysis_block</span><span class="p">():</span>
    <span class="k">def</span> <span class="nf">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">block</span><span class="o">=</span><span class="kc">None</span><span class="p">,</span> <span class="n">block_name</span><span class="o">=</span><span class="kc">None</span><span class="p">,</span> <span class="n">lens</span><span class="o">=</span><span class="mi">90</span><span class="p">,</span> <span class="o">*</span><span class="n">args</span><span class="p">,</span> <span class="o">**</span><span class="n">kwargs</span><span class="p">):</span>

        <span class="k">try</span><span class="p">:</span>
            <span class="bp">self</span><span class="o">.</span><span class="n">block_code</span> <span class="o">=</span> <span class="n">block</span><span class="o">.</span><span class="n">code</span>
        <span class="k">except</span><span class="p">:</span>
            <span class="bp">self</span><span class="o">.</span><span class="n">block_code</span> <span class="o">=</span> <span class="n">block</span>

        <span class="k">if</span> <span class="n">block_name</span> <span class="ow">is</span> <span class="ow">not</span> <span class="kc">None</span><span class="p">:</span>
            <span class="bp">self</span><span class="o">.</span><span class="n">block_code</span> <span class="o">=</span> <span class="n">QA_fetch_stock_block_adv</span><span class="p">()</span><span class="o">.</span><span class="n">get_block</span><span class="p">(</span><span class="n">block_name</span><span class="p">)</span><span class="o">.</span><span class="n">code</span>
        <span class="bp">self</span><span class="o">.</span><span class="n">lens</span> <span class="o">=</span> <span class="n">lens</span>
        <span class="c1"># self.Executor=QA_Tdx_Executor()</span>

<div class="viewcode-block" id="QAAnalysis_block.market_data"><a class="viewcode-back" href="../../../source/QUANTAXIS.QAAnalysis.html#QUANTAXIS.QAAnalysis.QAAnalysis_block.QAAnalysis_block.market_data">[docs]</a>    <span class="k">def</span> <span class="nf">market_data</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">start</span><span class="p">,</span> <span class="n">end</span><span class="p">,</span> <span class="n">_type</span><span class="o">=</span><span class="s1">&#39;day&#39;</span><span class="p">):</span>
        <span class="k">return</span> <span class="n">QA_fetch_stock_day_adv</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">block_code</span><span class="p">,</span> <span class="n">start</span><span class="p">,</span> <span class="n">end</span><span class="p">)</span></div>

    <span class="nd">@property</span>
    <span class="k">def</span> <span class="nf">week_data</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
        <span class="s1">&#39;this weekly data&#39;</span>
        <span class="s1">&#39;return a QUANTAXIS DATASTRUCT&#39;</span>
        <span class="n">_start</span><span class="p">,</span> <span class="n">_end</span> <span class="o">=</span> <span class="n">get_gap_trade</span><span class="p">(</span><span class="mi">7</span><span class="p">)</span>
        <span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">market_data</span><span class="p">(</span><span class="n">_start</span><span class="p">,</span> <span class="n">_end</span><span class="p">)</span>

    <span class="nd">@property</span>
    <span class="k">def</span> <span class="nf">month_data</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
        <span class="s1">&#39;this monthly data&#39;</span>
        <span class="s1">&#39;return a QUANTAXIS DATASTRUCT&#39;</span>
        <span class="n">_start</span><span class="p">,</span> <span class="n">_end</span> <span class="o">=</span> <span class="n">get_gap_trade</span><span class="p">(</span><span class="mi">90</span><span class="p">)</span>
        <span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">market_data</span><span class="p">(</span><span class="n">_start</span><span class="p">,</span> <span class="n">_end</span><span class="p">)</span>

    <span class="nd">@property</span>
    <span class="k">def</span> <span class="nf">_data</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
        <span class="n">_start</span><span class="p">,</span> <span class="n">_end</span> <span class="o">=</span> <span class="n">get_gap_trade</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">lens</span><span class="p">)</span>
        <span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">market_data</span><span class="p">(</span><span class="n">_start</span><span class="p">,</span> <span class="n">_end</span><span class="p">)</span>

<div class="viewcode-block" id="QAAnalysis_block.block_price"><a class="viewcode-back" href="../../../source/QUANTAXIS.QAAnalysis.html#QUANTAXIS.QAAnalysis.QAAnalysis_block.QAAnalysis_block.block_price">[docs]</a>    <span class="k">def</span> <span class="nf">block_price</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">market_data</span><span class="o">=</span><span class="kc">None</span><span class="p">):</span>
        <span class="k">if</span> <span class="n">market_data</span> <span class="ow">is</span> <span class="kc">None</span><span class="p">:</span>
            <span class="n">market_data</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">_data</span><span class="o">.</span><span class="n">to_qfq</span><span class="p">()</span>
        <span class="k">else</span><span class="p">:</span>
            <span class="n">market_data</span> <span class="o">=</span> <span class="n">market_data</span><span class="o">.</span><span class="n">to_qfq</span><span class="p">()</span>
        <span class="k">return</span> <span class="n">QAAnalysis_stock</span><span class="p">(</span><span class="n">market_data</span><span class="p">)</span><span class="o">.</span><span class="n">price</span><span class="o">.</span><span class="n">groupby</span><span class="p">(</span><span class="s1">&#39;date&#39;</span><span class="p">)</span><span class="o">.</span><span class="n">mean</span><span class="p">()</span></div>

<div class="viewcode-block" id="QAAnalysis_block.block_pcg"><a class="viewcode-back" href="../../../source/QUANTAXIS.QAAnalysis.html#QUANTAXIS.QAAnalysis.QAAnalysis_block.QAAnalysis_block.block_pcg">[docs]</a>    <span class="k">def</span> <span class="nf">block_pcg</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">market_data</span><span class="o">=</span><span class="kc">None</span><span class="p">):</span>
        <span class="k">if</span> <span class="n">market_data</span> <span class="ow">is</span> <span class="kc">None</span><span class="p">:</span>
            <span class="n">market_data</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">_data</span><span class="o">.</span><span class="n">to_qfq</span><span class="p">()</span>
        <span class="k">else</span><span class="p">:</span>
            <span class="n">market_data</span> <span class="o">=</span> <span class="n">market_data</span><span class="o">.</span><span class="n">to_qfq</span><span class="p">()</span>
        <span class="k">return</span> <span class="n">QAAnalysis_stock</span><span class="p">(</span><span class="n">market_data</span><span class="p">)</span><span class="o">.</span><span class="n">day_pct_change</span><span class="o">.</span><span class="n">groupby</span><span class="p">(</span><span class="s1">&#39;date&#39;</span><span class="p">)</span><span class="o">.</span><span class="n">mean</span><span class="p">()</span></div>

<div class="viewcode-block" id="QAAnalysis_block.stock_turnover"><a class="viewcode-back" href="../../../source/QUANTAXIS.QAAnalysis.html#QUANTAXIS.QAAnalysis.QAAnalysis_block.QAAnalysis_block.stock_turnover">[docs]</a>    <span class="k">def</span> <span class="nf">stock_turnover</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">market_data</span><span class="o">=</span><span class="kc">None</span><span class="p">):</span>
        <span class="k">if</span> <span class="n">market_data</span> <span class="ow">is</span> <span class="kc">None</span><span class="p">:</span>
            <span class="n">market_data</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">_data</span><span class="o">.</span><span class="n">to_qfq</span><span class="p">()</span>
        <span class="k">else</span><span class="p">:</span>
            <span class="n">market_data</span> <span class="o">=</span> <span class="n">market_data</span><span class="o">.</span><span class="n">to_qfq</span><span class="p">()</span>
        <span class="n">_data</span> <span class="o">=</span> <span class="n">market_data</span><span class="o">.</span><span class="n">data</span>
        <span class="n">_info</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">stock_info</span><span class="p">()</span>
        <span class="n">_data</span><span class="p">[</span><span class="s1">&#39;ltgb&#39;</span><span class="p">]</span> <span class="o">=</span> <span class="n">_data</span><span class="o">.</span><span class="n">code</span><span class="o">.</span><span class="n">apply</span><span class="p">(</span><span class="k">lambda</span> <span class="n">x</span><span class="p">:</span> <span class="n">_info</span><span class="o">.</span><span class="n">liutongguben</span><span class="p">[</span><span class="n">x</span><span class="p">])</span>
        <span class="n">_data</span><span class="p">[</span><span class="s1">&#39;turnover&#39;</span><span class="p">]</span> <span class="o">=</span> <span class="mi">100</span> <span class="o">*</span> <span class="n">_data</span><span class="p">[</span><span class="s1">&#39;volume&#39;</span><span class="p">]</span> <span class="o">/</span> <span class="n">_data</span><span class="p">[</span><span class="s1">&#39;ltgb&#39;</span><span class="p">]</span>
        <span class="k">return</span> <span class="n">_data</span></div>

<div class="viewcode-block" id="QAAnalysis_block.block_turnover"><a class="viewcode-back" href="../../../source/QUANTAXIS.QAAnalysis.html#QUANTAXIS.QAAnalysis.QAAnalysis_block.QAAnalysis_block.block_turnover">[docs]</a>    <span class="k">def</span> <span class="nf">block_turnover</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">market_data</span><span class="o">=</span><span class="kc">None</span><span class="p">):</span>
        <span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">stock_turnover</span><span class="p">(</span><span class="n">market_data</span><span class="p">)</span><span class="o">.</span><span class="n">turnover</span><span class="o">.</span><span class="n">groupby</span><span class="p">(</span><span class="s1">&#39;date&#39;</span><span class="p">)</span><span class="o">.</span><span class="n">mean</span><span class="p">()</span></div>

<div class="viewcode-block" id="QAAnalysis_block.stock_info"><a class="viewcode-back" href="../../../source/QUANTAXIS.QAAnalysis.html#QUANTAXIS.QAAnalysis.QAAnalysis_block.QAAnalysis_block.stock_info">[docs]</a>    <span class="k">def</span> <span class="nf">stock_info</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
        <span class="n">data</span> <span class="o">=</span> <span class="p">[]</span>

        <span class="k">for</span> <span class="n">item</span> <span class="ow">in</span> <span class="bp">self</span><span class="o">.</span><span class="n">block_code</span><span class="p">:</span>
            <span class="k">try</span><span class="p">:</span>
                <span class="n">_data</span> <span class="o">=</span> <span class="n">QA_fetch_stock_info</span><span class="p">(</span><span class="n">item</span><span class="p">)</span>
            <span class="k">except</span><span class="p">:</span>
                <span class="n">_data</span> <span class="o">=</span> <span class="n">QA_fetch_get_stock_info</span><span class="p">(</span><span class="n">item</span><span class="p">)</span>
            <span class="n">data</span><span class="o">.</span><span class="n">append</span><span class="p">(</span><span class="n">_data</span><span class="p">)</span>

        <span class="k">return</span> <span class="n">pd</span><span class="o">.</span><span class="n">concat</span><span class="p">(</span><span class="n">data</span><span class="p">)</span><span class="o">.</span><span class="n">set_index</span><span class="p">(</span><span class="s1">&#39;code&#39;</span><span class="p">,</span> <span class="n">drop</span><span class="o">=</span><span class="kc">False</span><span class="p">)</span></div>

<div class="viewcode-block" id="QAAnalysis_block.res"><a class="viewcode-back" href="../../../source/QUANTAXIS.QAAnalysis.html#QUANTAXIS.QAAnalysis.QAAnalysis_block.QAAnalysis_block.res">[docs]</a>    <span class="k">def</span> <span class="nf">res</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
        <span class="kn">import</span> <span class="nn">matplotlib.pyplot</span> <span class="k">as</span> <span class="nn">plt</span>
        <span class="bp">self</span><span class="o">.</span><span class="n">block_pcg</span><span class="p">()</span><span class="o">.</span><span class="n">plot</span><span class="p">()</span>
        <span class="bp">self</span><span class="o">.</span><span class="n">block_turnover</span><span class="p">()</span><span class="o">.</span><span class="n">plot</span><span class="p">()</span>
        <span class="n">plt</span><span class="o">.</span><span class="n">show</span><span class="p">()</span></div></div>



<div class="viewcode-block" id="QAAnalysis_codewithblock"><a class="viewcode-back" href="../../../source/QUANTAXIS.QAAnalysis.html#QUANTAXIS.QAAnalysis.QAAnalysis_block.QAAnalysis_codewithblock">[docs]</a><span class="k">class</span> <span class="nc">QAAnalysis_codewithblock</span><span class="p">():</span>
    <span class="k">def</span> <span class="nf">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">block</span><span class="p">):</span>
        <span class="bp">self</span><span class="o">.</span><span class="n">block</span> <span class="o">=</span> <span class="n">block</span>
        <span class="bp">self</span><span class="o">.</span><span class="n">code</span> <span class="o">=</span> <span class="n">block</span><span class="o">.</span><span class="n">code</span></div>





<span class="k">if</span> <span class="vm">__name__</span> <span class="o">==</span> <span class="s2">&quot;__main__&quot;</span><span class="p">:</span>
    <span class="kn">import</span> <span class="nn">QUANTAXIS</span> <span class="k">as</span> <span class="nn">QA</span>
    <span class="c1"># print(get_this_week())</span>
    <span class="n">ana</span> <span class="o">=</span> <span class="n">QAAnalysis_block</span><span class="p">(</span>
        <span class="n">QA</span><span class="o">.</span><span class="n">QA_fetch_stock_block_adv</span><span class="p">()</span><span class="o">.</span><span class="n">get_block</span><span class="p">(</span><span class="s1">&#39;昨日涨停&#39;</span><span class="p">)</span><span class="o">.</span><span class="n">code</span><span class="p">)</span>

    <span class="sd">&quot;&quot;&quot;</span>
<span class="sd">    计算换手率</span>
<span class="sd">    d=QA.QA_fetch_get_stock_day(&#39;tdx&#39;,&#39;000001&#39;,&#39;2017-11-14&#39;,&#39;2017-11-15&#39;,&#39;00&#39;).vol.values[0]*100  # 一手100股</span>
<span class="sd">    f=QA.QA_fetch_get_stock_info(&#39;tdx&#39;,&#39;000001&#39;).liutongguben.values[0]</span>
<span class="sd">    turnover=d/f</span>
<span class="sd">    &quot;&quot;&quot;</span>
    <span class="c1"># print(js)</span>

    <span class="n">x</span> <span class="o">=</span> <span class="p">[]</span>
    <span class="n">y</span> <span class="o">=</span> <span class="p">[]</span>
    <span class="n">block</span> <span class="o">=</span> <span class="n">QA</span><span class="o">.</span><span class="n">QA_fetch_stock_block_adv</span><span class="p">()</span><span class="o">.</span><span class="n">get_type</span><span class="p">(</span><span class="s1">&#39;gn&#39;</span><span class="p">)</span><span class="o">.</span><span class="n">block_name</span>
    <span class="k">for</span> <span class="n">item</span> <span class="ow">in</span> <span class="n">block</span><span class="p">:</span>
        <span class="nb">print</span><span class="p">(</span><span class="n">item</span><span class="p">)</span>
        <span class="n">data</span> <span class="o">=</span> <span class="n">QAAnalysis_block</span><span class="p">(</span><span class="n">block_name</span><span class="o">=</span><span class="n">item</span><span class="p">)</span>
        <span class="n">x</span><span class="o">.</span><span class="n">append</span><span class="p">(</span><span class="n">data</span><span class="o">.</span><span class="n">block_pcg</span><span class="p">())</span>
        <span class="n">y</span><span class="o">.</span><span class="n">append</span><span class="p">(</span><span class="n">data</span><span class="o">.</span><span class="n">block_turnover</span><span class="p">())</span>
    <span class="nb">print</span><span class="p">(</span><span class="nb">len</span><span class="p">(</span><span class="n">x</span><span class="p">))</span>
    <span class="nb">print</span><span class="p">(</span><span class="nb">len</span><span class="p">(</span><span class="n">y</span><span class="p">))</span>
</pre></div>

           </div>
           
          </div>
          <footer>
  

  <hr/>

  <div role="contentinfo">
    <p>
        &copy; Copyright 2018, yutiansut.

    </p>
  </div>
  Built with <a href="http://sphinx-doc.org/">Sphinx</a> using a <a href="https://github.com/rtfd/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>. 

</footer>

        </div>
      </div>

    </section>

  </div>
  


  

    <script type="text/javascript">
        var DOCUMENTATION_OPTIONS = {
            URL_ROOT:'../../../',
            VERSION:'1.0.39',
            LANGUAGE:'python',
            COLLAPSE_INDEX:false,
            FILE_SUFFIX:'.html',
            HAS_SOURCE:  true,
            SOURCELINK_SUFFIX: '.txt'
        };
    </script>
      <script type="text/javascript" src="../../../_static/jquery.js"></script>
      <script type="text/javascript" src="../../../_static/underscore.js"></script>
      <script type="text/javascript" src="../../../_static/doctools.js"></script>
      <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>

  

  
  
    <script type="text/javascript" src="../../../_static/js/theme.js"></script>
  

  <script type="text/javascript">
      jQuery(function () {
          SphinxRtdTheme.Navigation.enable(true);
      });
  </script> 

</body>
</html>